/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import slcu.model.InscripcionDisciplina;

import java.io.Serializable;

/**
 * The cache model class for representing InscripcionDisciplina in entity cache.
 *
 * @author tito
 * @see InscripcionDisciplina
 * @generated
 */
public class InscripcionDisciplinaCacheModel implements CacheModel<InscripcionDisciplina>,
	Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(9);

		sb.append("{inscripcionId=");
		sb.append(inscripcionId);
		sb.append(", numeroDocumento=");
		sb.append(numeroDocumento);
		sb.append(", cue=");
		sb.append(cue);
		sb.append(", disciplinaId=");
		sb.append(disciplinaId);
		sb.append("}");

		return sb.toString();
	}

	public InscripcionDisciplina toEntityModel() {
		InscripcionDisciplinaImpl inscripcionDisciplinaImpl = new InscripcionDisciplinaImpl();

		inscripcionDisciplinaImpl.setInscripcionId(inscripcionId);

		if (numeroDocumento == null) {
			inscripcionDisciplinaImpl.setNumeroDocumento(StringPool.BLANK);
		}
		else {
			inscripcionDisciplinaImpl.setNumeroDocumento(numeroDocumento);
		}

		inscripcionDisciplinaImpl.setCue(cue);
		inscripcionDisciplinaImpl.setDisciplinaId(disciplinaId);

		inscripcionDisciplinaImpl.resetOriginalValues();

		return inscripcionDisciplinaImpl;
	}

	public long inscripcionId;
	public String numeroDocumento;
	public long cue;
	public long disciplinaId;
}